﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WorldOfMUDra
{
    public class World
    {
        public static Dictionary<string, Area> Areas = new Dictionary<string, Area>();

        public Area MainSquare = new Area("main_square.xml");
        public Area Castle = new Area("castle.xml");

        public Area CityGates = new Area("cgates.xml");
        public Area Woods = new Area("woods.xml");
        public Area Meadow = new Area("meadow.xml");
        public Area Spring = new Area("spring.xml");
        public Area WoodPath = new Area("wpath.xml");

        public Area SmallTown = new Area("stown.xml");

        public Area Market = new Area("market.xml");
        public Area WeaponShop = new Area("wshop.xml");
        public Area ArmorShop = new Area("ashop.xml");

        public Area FirstArea = new Area("ta.xml");
        public Area ForestTrail = new Area("forest_trail.xml");
        public Area ForestClearing = new Area("forest_clearing.xml");

        public Sign FirstSign = new Sign("firstsign.xml");

        public Clock WorldClock = new Clock();

        public World()
        {
            this.WorldClock.Start();
        }

        public void Link(Area PointA, Area PointB)
        {
            PointA.LinkWith(PointB);
            PointB.LinkWith(PointA);
        }
    }
}
